#coding:utf-8

import sys
reload(sys)
sys.setdefaultencoding("UTF-8")

from utils.bean_util import BeanUtil

class DataFeed(object):
    def __init__(self):
        self._file_name = None
        self._last_modified = None
        self._md5_value = None
        self._size = 0
        self._path = None

    def equals(self, other):
        if self._last_modified != other._last_modified or \
                        self._md5_value != other._md5_value or \
                        long(self._size) != long(other._size):
            return False

        return True

    def __str__(self):
        return BeanUtil.dumps(self)
